using IQIGame.Onigao.Framework;
using IQIGame.Onigao.Game;
using System.Collections.Generic;

namespace IQIGame.Onigao.GamePlay
{
    public class UD_UIEquipDecompose : UIBaseData
    {
        public List<long> idList;

        public static UD_UIEquipDecompose Create()
        {
            var d = ClassPool<UD_UIEquipDecompose>.Get();
            d.idList = ListPool<long>.Get();
            return d;
        }

        public UD_UIEquipDecompose AddRange(IEnumerable<long> collection)
        {
            this.idList.AddRange(collection);
            return this;
        }

        public override void OnReset()
        {
            ListPool<long>.Put(idList);
            idList = null;
        }
    }
}
